/**
 * 
 */
package com.csc.bankingsystem.core.service;

import java.util.List;

import com.csc.bankingsystem.core.entity.HistoryRecord;
import com.csc.bankingsystem.core.entity.UserInfo;

/**
 * Define service operation of HistoryRecord
 * 
 * @author angelkid
 *
 */
public interface HistoryRecordService {

	HistoryRecord find(long id);

	List<HistoryRecord> findAll();

	Long countAll();

//	void saveOrUpdate(HistoryRecord historyRecord);

	Long save(HistoryRecord historyRecord);

	void update(HistoryRecord historyRecord);

	void delete(HistoryRecord historyRecord);
	
	void saveLoginSuccessByUserInfoObject(UserInfo userInfo);

	void saveLogoutSuccessByLoginId(String loginId);
}
